class Category < ActiveRecord::Base
  has_many :prints
  has_and_belongs_to_many :designs
  has_and_belongs_to_many :male_designs,
    :class_name=>"Design",
    :conditions=>"sex = 1 or sex =2 and active = 1"

  has_and_belongs_to_many :female_designs,
    :class_name=>"Design",
    :conditions=>"sex = 0 or sex =2 and active = 1"
end
